package com.JZ.QM.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * @author lyp
 * @email lyp@gmail.com
 * @date 2020/6/16 20:56
 */
@Data
public class CombinationProductDto {

    @NotNull(message = "策略id必须提交")
    private Long strategyId;

    @NotNull(message = "投顾id必须提交")
    private Long counselorId;

    @NotBlank(message = "组合名称必须提交")
    private String comBaseName;

    @NotNull(message = "起投金额必须提交")
    private BigDecimal conBaseStartMoney;

    @NotBlank(message = "产品描述必须提交")
    private String comBaseDesc;

    @NotNull(message = "产品类型必须提交")
    private Integer comBaseCate;

    @NotNull(message = "风险等级必须提交")
    private Integer comBaseRiskLevel;

    @NotNull(message = "成分产品不能为空")
    private List<ProductRatioDto> productRatioDtoList = new ArrayList<>();
}
